package models;

import play.Logger;
import controllers.persist.REMSPersist;

public class DataPersist implements REMSPersist{

    @Override
    public void saveSensorData(int value, String sensorUID, Object type) {
        SensorType tp = null;
        try {
             tp = (SensorType) type;
             Logger.debug(tp.toString());
        } catch (Exception e) {
            Logger.error(e.getMessage());
        }
        SensorData data = new SensorData(value, sensorUID, tp);
        Logger.debug(data.toString());
    }

    @Override
    public void saveSensorCNAverage(int value, String clusterNodeID, Object sensorType) {
        // TODO Auto-generated method stub
        
    }



}
